home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
amiga1
/
dlgtn121.lha
/
source
/
localset.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-06
|
403b
|
22 lines
/*
LocalSet - set local environment vars from a DLG menu script
We can't use set within a DLG menu script because it's a built in
command - use this instead.
*/
#include <dos/var.h>
main(argc,argv)
char *argv[];
{
if (argc == 3)
{ SetVar((char *)argv[1],(char *)argv[2],strlen(argv[2])+1,GVF_LOCAL_ONLY);
exit(0);
} else if (argc == 1)
{ Execute("Set",0L,0L);
exit(0);
}
exit(10);
}